package com.rules.admin.unit;

public class TestResult {
   private String messages;
   private boolean success = false;
   private String testName;

   public TestResult(boolean success) {
      this.success = success;
   }

   public TestResult() {
   }

   public TestResult(boolean success, String messages) {
      this.success = success;
      this.messages = messages;
   }

   public String toString() {
      return "TestResult{messages=" + this.messages + ", success=" + this.success + ", testName=" + this.testName + '}';
   }

   public void setMes(boolean success, String name, String mes) {
      this.success = success;
      this.testName = name;
      this.messages = mes;
   }

   public String getMessages() {
      return this.messages;
   }

   public void setMessages(String messages) {
      this.messages = messages;
   }

   public boolean isSuccess() {
      return this.success;
   }

   public void setSuccess(boolean success) {
      this.success = success;
   }

   public String getTestName() {
      return this.testName;
   }

   public void setTestName(String testName) {
      this.testName = testName;
   }
}
